package com.p2p.front.service;

import java.util.List;
import java.util.Map;

import com.p2p.base.model.BaseUser;
import com.p2p.base.page.PageVo;
import com.p2p.front.dal.model.IdCardInfo;
import com.p2p.front.dal.model.User;

public interface UserService {

	User findById(String id);

	void update(User user);

	User searchUser(String search);
	
	List<User> searchUserList(String search);
	
	PageVo searchUserListPage(String search,PageVo pageVo);
	
	PageVo buildForExtraInfo(PageVo pageVo);
	
	User findByUname(String uname);

	User findByPhone(String mobilephone);

	User findByEmail(String email);

	void updateEmail(User user);

	Map<String, Object> get(Long id);

	Map<String, Object> findAuthed(String idcard);
	void authIdCard(IdCardInfo idCard,String fileName,BaseUser u);
	
	Map<String,User> searchUserByIdList(List<String> idList);

}
